import http from '../request.js'
// 待审核护理卡订单
export function selectNurseCardOrder(data) {
  return http.request({
    url: '/admin/order/selectNurseCardOrder',
    method: 'post',
    data
  })
}

export function selectOrderDetail(number) {
  return http.request({
    url: '/admin/order/selectOrderDetail?number=' + number,
    method: 'get'
  })
}
// 审核护理卡订单
export function updateNurseCardOrderStatus(number, status, cancelCase) {
  return http.request({
    url: '/admin/order/updateNurseCardOrderStatus?number=' + number + '&status=' + status + '&cancelCase=' + cancelCase,
    method: 'get'
  })
}
// 修改护理卡金额金额
export function updateNurseCardOrderPrice(number, price) {
  return http.request({
    url: '/admin/order/updateNurseCardOrderPrice?number=' + number + '&price=' + price,
    method: 'get'
  })
}
/*
多条件查询护理报告列表*/

export function selectAllNursingRecord(data) {
  return http.request({
    url: '/admin/nursingRecord/selectAllNursingRecord',
    method: 'post',
    data
  })
}
/* 
获取某一条护理记录的服务报告详情*/

export function selectNursingRecordByNumber(data) {
  return http.request({
    url: '/admin/nursingRecord/selectNursingRecordByNumber',
    method: 'get',
    data
  })
}
/* 
审核护理报告*/

export function rejectNursingReport(data) {
  return http.request({
    url: '/admin/nursingRecord/changeNursingRecordStatus?cause=' + data.cause + '&id=' + data.id + '&status=' + data.status,
    method: 'get'
  })
}
export function agreeNursingReport(data) {
  return http.request({
    url: '/admin/nursingRecord/changeNursingRecordStatus?id=' + data.id + '&status=' + data.status,
    method: 'get'
  })
}

// 护士认证

/* 
多条件查询护士认证列表*/

export function selectAllNurseInfoCheck(data) {
  return http.request({
    url: '/admin/nurseInfoCheck/selectAllNurseInfoCheck',
    method: 'post',
    data
  })
}

/* 
查询护士审核信息详情*/

export function selectNurseInfoCheckById(data) {
  return http.request({
    url: '/admin/nurseInfoCheck/selectNurseInfoCheckById?id=' + data,
    method: 'get'
  })
}

/* 
护士审核信息后台审核提交*/

export function updateNurseInfoStatus(data) {
  return http.request({
    url: '/admin/nurseInfoCheck/updateNurseInfoStatus',
    method: 'post',
    data
  })
}

// 提现设置

/* 
查询所有提现申请*/

export function selectAllWalletRecords(data) {
  return http.request({
    url: '/admin/walletRecords/selectAllWalletRecords',
    method: 'post',
    data
  })
}
/* 
查询提现详情*/

export function selectWalletRecordsInfo(data) {
  return http.request({
    url: '/admin/walletRecords/selectWalletRecordsInfo?id=' + data,
    method: 'get'
  })
}
export function selectRecordById(data) {
  return http.request({
    url: '/admin/OrganWithdrawDeposit//selectRecordById?id=' + data,
    method: 'get'
  })
}
/* 
处理提现*/

export function manageWalletRecords(data) {
  return http.request({
    url: '/admin/walletRecords/manageWalletRecords',
    method: 'post',
    data
  })
}
/* 
查看提现设置*/

export function selectWithdrawDeposit(data) {
  return http.request({
    url: '/admin/walletRecords/selectWithdrawDeposit',
    method: 'post',
    data
  })
}
/* 
修改提现设置*/

export function updateWithdrawDeposit(data) {
  return http.request({
    url: '/admin/walletRecords/updateWithdrawDeposit',
    method: 'post',
    data
  })
}

// getNurseLabel
export function getNurseLabel(data) {
  return http.request({
    url: '/admin/returnVisit/getNurseLabel',
    method: 'get',
    params: data
  })
}
// visitOrderDetail
export function visitOrderDetail(data) {
  return http.request({
    url: '/admin/returnVisit/visitOrderDetail',
    method: 'get',
    params: data
  })
}
// visitOrderList
export function visitOrderList(data) {
  return http.request({
    url: '/admin/returnVisit/visitOrderList',
    method: 'get',
    params: data
  })
}
// saveVisitRecord
export function saveVisitRecord(data) {
  return http.request({
    url: '/admin/returnVisit/saveVisitRecord',
    method: 'post',
    data
  })
}

// visitStatistics
export function visitStatistics(data) {
  return http.request({
    url: '/admin/returnVisit/visitStatistics',
    method: 'post',
    data
  })
}

/*根据单号查询机构订单预约详情*/
export function selectOrderDetailOrganByNumber(params) {
  return http.request({
    url: '/admin/placeOrgan/selectOrderDetailOrganByNumber',
    method: 'get',
    params
  })
}

/*多条件查询机构订单审核列表*/
export function selectOrganOrderList(data) {
  return http.request({
    url: '/admin/placeOrgan/selectOrganOrderList',
    method: 'post',
    data
  })
}

/*审核机构预约订单*/
export function updateOrganOrder(params) {
  return http.request({
    url: '/admin/placeOrgan/updateOrganOrder',
    method: 'get',
    params
  })
}

/*根据单号查询订单评价*/
export function selectEvaluateByNumbert(params) {
  return http.request({
    url: '/admin/evaluate/selectEvaluateByNumber',
    method: 'get',
    params
  })
}

/*多条件查询评价列表*/
export function selectEvaluateList(data) {
  return http.request({
    url: '/admin/evaluate/selectEvaluateList',
    method: 'post',
    data
  })
}

// 渠道订单列表导出
export function selectAllWalletRecordExport(data) {
  return http.request({
    url: '/admin/walletRecords/selectAllWalletRecordExport',
    method: 'post',
    data
  })
}

// 提现失败走邮箱提现
export function secondaryProcessingWithdrawals(data) {
  return http.request({
    url: '/admin/walletRecords/secondaryProcessingWithdrawals',
    method: 'post',
    data
  })
}

// 查询全部家庭医生签约资料
export function selectAllSigningReport(params) {
  return http.request({
    url: '/admin/nursingRecord/selectAllSigningReport',
    method: 'get',
    params
  })
}

// 根据ID查询家庭医生签约资料
export function selectSigningReportById(params) {
  return http.request({
    url: '/admin/nursingRecord/selectSigningReportById',
    method: 'get',
    params
  })
}

// 社工护理报告审核
export function auditSocialWorkerReport(params) {
  return http.request({
    url: '/admin/nursingRecord/auditSocialWorkerReport',
    method: 'get',
    params
  })
}

/* 
社工查询所有提现申请*/

export function selectAllWalletRecordsSocialWorker(data) {
  return http.request({
    url: '/admin/walletRecordsSocialWorker/selectAllWalletRecordsSocialWorker',
    method: 'post',
    data
  })
}

/* 
社工查询提现详情*/

export function selectWalletRecordsSocialWorkerInfo(data) {
  return http.request({
    url: '/admin/walletRecordsSocialWorker/selectWalletRecordsSocialWorkerInfo?id=' + data,
    method: 'get'
  })
}

// 渠道订单列表导出
export function selectAllWalletRecordsSocialWorkerExport(data) {
  return http.request({
    url: '/admin/walletRecordsSocialWorker/selectAllWalletRecordsSocialWorkerExport',
    method: 'post',
    data
  })
}

/* 
社工处理提现*/

export function manageWalletRecordsSocialWorker(data) {
  return http.request({
    url: '/admin/walletRecordsSocialWorker/manageWalletRecordsSocialWorker',
    method: 'post',
    data
  })
}

// 获取渠道订单
export function selectAllOrder(data) {
  return http.request({
    url: '/admin/institutionAccount/selectAllOrder',
    method: 'post',
    data
  })
}

// 获取全部渠道订单id
export function selectAllOrderNumber(data) {
  return http.request({
    url: '/admin/institutionAccount/selectAllOrderNumber',
    method: 'post',
    data
  })
}

// 开具发票
export function insertInstitutionInvoice(data) {
  return http.request({
    url: '/admin/InstitutionInvoiceController/insertInstitutionInvoice',
    method: 'post',
    data
  })
}

// 查询发票申请列表
export function selectInvoiceList(data) {
  return http.request({
    url: '/admin/InstitutionInvoiceController/selectInvoiceList',
    method: 'post',
    data
  })
}

export function selectInvoiceById(params) {
  return http.request({
    url: '/admin/InstitutionInvoiceController/selectInvoiceById',
    method: 'get',
    params
  })
}

// 查询单条开票申请关联订单
export function selectInvoiceOrderList(params) {
  return http.request({
    url: '/admin/InstitutionInvoiceController/selectInvoiceOrderList',
    method: 'get',
    params
  })
}

// 审核开票申请
export function updateInvoiceStatus(params) {
  return http.request({
    url: '/admin/InstitutionInvoiceController/updateInvoiceStatus',
    method: 'get',
    params
  })
}

export function insertInvoicePic(data) {
  return http.request({
    url: '/admin/InstitutionInvoiceController/insertInvoicePic',
    method: 'post',
    data
  })
}

export function updatePriceByNumber(params) {
  return http.request({
    url: '/admin/order/updatePriceByNumber',
    method: 'get',
    params
  })
}

// 确认打款
export function confirmPaymentAndInvoice(data) {
  return http.request({
    url: '/admin/walletRecords/confirmPaymentAndInvoice',
    method: 'post',
    data
  })
}

// 社工-确认打款
export function workerConfirmPaymentAndInvoice(data) {
  return http.request({
    url: '/admin/walletRecordsSocialWorker/confirmPaymentAndInvoice',
    method: 'post',
    data
  })
}

// 开票
export function confirmInvoice(data) {
  return http.request({
    url: '/admin/walletRecords/confirmInvoice',
    method: 'post',
    data
  })
}

// 社工 开票
export function workerConfirmInvoice(data) {
  return http.request({
    url: '/admin/walletRecordsSocialWorker/confirmInvoice',
    method: 'post',
    data
  })
}

// 删除申请人自然
export function skipBankCards(params) {
  return http.request({
    url: '/admin/walletRecords/skipBankCards',
    method: 'get',
    params
  })
}

// 下载银行凭证
export function downloadInvoices(data) {
  return http.request({
    url: '/admin/walletRecords/downloadInvoices',
    method: 'post',
    data
  })
}

// 社工-下载银行凭证
export function workerDownloadInvoices(data) {
  return http.request({
    url: '/admin/walletRecordsSocialWorker/downloadInvoices',
    method: 'post',
    data
  })
}
